﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ClientPerformance
{
    [DataContract]
    public class DataPacket
    {
        [DataMember]
        public string SourceName { get; set; }

        [DataMember]
        public string Payload { get; set; }

        [DataMember]
        public DateTime DateTimeSent { get; set; }

        [DataMember]
        public string SessionId { get; set; }

        [DataMember]
        public int MessageId { get; set; }
    }


    public static class PayloadFactory
    {
        public static string Create(int size)
        {
            StringBuilder str = new StringBuilder(size);
            str.Insert(0, "K", size);
            return str.ToString();
        }
    }
}
